Skip to content

Conversation

@rsmithlal
Copy link
Member

This pull request introduces several improvements to model attribute handling, controller parameter security, test configuration, and UI/UX for resource and conversation management. The main focus is on making attribute permission more maintainable and DRY, enhancing automated test setup, and improving the responsiveness and accessibility of shared UI components.

Model attribute permission and controller parameter security:

  • Updated security and agent instructions to recommend defining a class method self.permitted_attributes on models, allowing controllers to use model-defined permit lists instead of hard-coding them. Nested attributes are composed by referencing other models’ permitted_attributes. [1] [2]
  • Refactored controller parameter handling in conversations_controller.rb, messages_controller.rb, navigation_areas_controller.rb, and navigation_items_controller.rb to use model-defined permitted_attributes for strong parameters, improving maintainability and consistency. [1] [2] [3] [4]

Automatic test configuration and authentication helpers:

  • Added documentation and helper patterns for automatic test configuration in specs, including metadata tags for authentication state and host platform setup. Most specs no longer need to manually call configure_host_platform, streamlining test writing and reducing boilerplate. [1] [2]

UI/UX improvements for resource toolbar and conversation header:

  • Added new styles for .resource-toolbar and .resource-toolbar-extra to improve layout and spacing for shared resource actions, and imported these styles in the main stylesheet. [1] [2]
  • Improved responsive design for conversation headers and participant lists, optimizing layout and avatar sizing for small screens.

Form label accessibility and validation:

  • Enhanced the required_label helper to support label text overrides and provide a tooltip for the required field indicator, improving accessibility and mobile usability.
  • Updated form validation controller to ensure all fields, including rich text editors, are validated before submission.

Conversation creation and participant management:

  • Improved conversation creation flow to support inline message creation, set message sender to the current user, and safely add the creator as a participant using add_participant_safe. [1] [2]

Let me know if you want to dive deeper into any specific change!

- Updated the messaging flow diagram to include error handling for adding participants.
- Improved the events location selector flow diagram with clearer method labels.
- Added new diagrams for platform manager functionalities: user administration, invitation system, user support, and security monitoring.
- Created user authentication flow diagram to illustrate the sign-in process.
- Refactored user management flow diagram to serve as an index linking to detailed sub-diagrams.
- Introduced user profile management flow diagram to outline profile editing processes.
- Implemented client-side validation for conversation creation to prevent empty messages.
- Enhanced conversation factory to ensure initial messages are present for validation.
- Added tests for conversation creation with initial messages and profile message prefill functionality.
- Updated resource toolbar to support additional actions via block content.
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

… persistence of core fields in controller specs
@rsmithlal rsmithlal merged commit abeb415 into main Aug 31, 2025
13 checks passed
@rsmithlal rsmithlal deleted the adjustments/messaging branch August 31, 2025 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants